package com.zhongpengcheng.blog.pojo.dto;

import com.zhongpengcheng.blog.dao.enums.PublishStatusEnum;
import lombok.*;

import java.io.Serializable;

/**
 * 博客对象DTO
 * note: 1.记录变更 by zhongpengcheng
 *
 * @author zhongpengcheng
 * @date 2021/09/02 15:41
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(of = "blogId")
@Builder
public class BlogDTO implements Serializable {
    private static final long serialVersionUID = -5348581173787553216L;
    /**
     * 文章标题
     */
    private String title;
    /**
     * 文章对应文件ID
     */
    private String fileId;
    /**
     * 文章上传者
     */
    private String uploader;
    /**
     * 博客文章业务ID（全局唯一）
     */
    private String blogId;
    /**
     * 文章分类
     */
    private String category;
    /**
     * 文章发布状态
     */
    private PublishStatusEnum publishStatus;
}
